package com.dragonsky.shop.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dragonsky.shop.order.entity.BasicEntity;
import java.io.Serializable;

import lombok.*;
import lombok.experimental.SuperBuilder;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author dragon
 * @since 2025-03-22 00:18:05
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("sys_order")
public class Order extends BasicEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 订单主键
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 订单号
     */
    @TableField("order_no")
    private String orderNo;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 订单金额
     */
    @TableField("order_price")
    private String orderPrice;

    /**
     * 状态（1正常 0禁用）
     */
    @TableField("status")
    private Byte status;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    public static final String ORDER_ID = "order_id";

    public static final String ORDER_NO = "order_no";

    public static final String USER_ID = "user_id";

    public static final String ORDER_PRICE = "order_price";

    public static final String STATUS = "status";

    public static final String REMARK = "remark";
}
